package com.jian.ecommercial.mapper;

import com.jian.ecommercial.domain.StockUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface StockUserMapper {
    /**
     * 验证用户输入的用户名和密码是否正确
     * @param
     * @return
     */
    StockUser findByUsernameAndPassword(@Param("username") String username,@Param("password") String password);

    /**
     * 根据用户名判断用户是否存在
     * @param username
     * @return
     */
    StockUser findByUsername(@Param("username") String username);

}
